<?php

App::uses('AppController', 'Controller');

/**
 * Events Controller
 *
 * @property Event $Event
 * @property Gevent $Gevent
 */
class GeventsController extends AppController {
    public $scaffold = 'admin';
    public $helpers = array('Form');
    
    public function beforeFilter() {
        parent::beforeFilter();
        $this->Auth->deny(array('admin_index', 'admin_view', 'admin_add', 'admin_edit', 'admin_delete'));
    }
    public function admin_index() {
        $this->Gevent->recursive = 0;
        $this->set('gevents', $this->paginate());
    }
}
